@import './reset.css';
@import './bootstrap.min.css';

body {
    background: #1353CE;
    font-family: 'Microsoft YaHei';
    overflow: hidden;

}

.layout-box {
    border-radius: 2px;
    margin-bottom: 16px;
}

.layout-header {
    padding: 12px 16px;
    font-size: 16px;
    color: rgba(49, 60, 71, 1);
    line-height: 19px;
    border-bottom: 1px solid rgba(232, 232, 232, 1);
    position: relative;

    h2 {
        font-size: 14px;
    }

    button {
        float: right;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 16px;
    }
}

.layout-body {
    min-height: 62px;
    font-size: 16px;
}

.wrapper {
    background: transparent;
    width: 1920px;
    height: 1080px;
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 18px;
    color: #fff;
    margin-top: -540px;
    margin-left: -960px;

}

.global-content {
    display: flex;
    flex-flow: column;
    height: 100%;
}

.header {
    display: flex;
    height: 100px;
    padding: 25px 40px 0 40px;
    background: url("../images/header.png") no-repeat center;
    background-size: 100% 100%;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    color: #D3FFFE;
    letter-spacing: 0;
    line-height: 30.92px;

    .point-box {
        position: relative;
        padding-left: 30px;
        padding-right: 30px;

        &::before {
            display: block;
            content: '▪▪▪';
            position: absolute;
            top: 0px;
            right: 0;

        }

        &::after {
            display: block;
            content: '▪▪▪';
            position: absolute;
            top: 0px;
            left: 0;

        }
    }

    img {
        vertical-align: middle;
    }

    .header-left {
        text-align: center;
    }

    .header-right {
        text-align: right;

        .point-box {
            display: inline-block;
            margin-left: 20px;
        }

        a {
            font-size: 18px;
            color: #D3FFFE;
            letter-spacing: 0;
            text-align: center;
            line-height: 30.92px;
            text-decoration: underline;
            margin-left: 20px;
        }
    }
}

.tab {
    font-family: MicrosoftYaHei;
    font-size: 16px;
    color: #333333;
    letter-spacing: 0;
}

.tab-wrapper {
    display: flex;
    height: 473px;

    .tab-layout {
        flex: 1;
        display: flex;
        flex-flow: column;

        .tab-layout-body {
            flex: 1;
        }

        &:first-child {
            margin-right: 20px;
            display: flex;
            flex-flow: column;

            .tab-layout-col {
                flex: 1;
                display: flex;
                flex-flow: column;

                .tab-layout-col-body {
                    flex: 1;
                }
            }
        }
    }
}

.select-date {
    width: 100%;
    padding: 0 16px;
    line-height: 42px;
    border-bottom: 1px solid rgba(13, 61, 155, .3);
    position: relative;

    .time-grout {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);

        span {
            position: relative;
            display: inline-block;
            margin: 0 5px;
            cursor: pointer;
            font-size: 14px;

            &:hover,
            &.on {

                font-size: 14px;
                color: #1353CE;
                letter-spacing: 0;
            }

            &:last-child {
                &::after {
                    display: none;
                }
            }

            &::after {
                display: block;
                content: '';
                opacity: 0.3;
                background: #333333;
                width: 1px;
                height: 10px;
                position: absolute;
                right: -5px;
                top: 50%;
                transform: translateY(-50%);
            }
        }
    }
}

.tabs {
    padding: 0 10px;

    span {
        display: inline-block;
        font-family: MicrosoftYaHei;
        cursor: pointer;
        font-size: 16px;
        color: #1353CE;
        text-align: center;
        margin-right: 10px;
        line-height: 40px;
        width: 134px;
        height: 40px;
        background: url("../images/tab-bg-default.png") no-repeat center;

        &:hover,
        &.on {
            color: #fff;
            transition: all .3s ease-in;
            background: url("../images/tab-bg-on.png") no-repeat center;
        }

    }
}

.cntj-list {
    display: flex;
    height: 100%;
    align-items: center;

    .cnntj-item {
        flex: 1;
        margin: 0 16px;
        height: 54px;
        height: 54px;
        background: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 14px;
        color: #313C47;

        &:nth-child(2) {
            span {
                background: #FF7800;
            }
        }

        &:nth-child(3) {
            span {
                background: #1B61FF;
            }
        }

        span {
            display: inline-block;
            background: #0C9940;
            padding: 0 3px;
            min-width: 40px;
            line-height: 21px;
            vertical-align: middle;
            border-radius: 2px;
            font-size: 14px;
            color: #FFFFFF;
            text-align: center;
            line-height: 21px;
        }
    }
}

.statistical-list {
    display: flex;
    height: 100%;
    padding: 16px 15px;
    padding-top: 46px;
    font-size: 16px;
    color: #333333;
    text-align: center;

    .risk-wrapper {
        width: 600px;
        margin: 0 5px;
        background-image: linear-gradient(-180deg, #F7F8FC 0%, #FFFFFF 100%);
        border: 1px solid #C5C5C5;
        height: 285px;
        border-radius: 8px;
        position: relative;
        padding: 0px 16px 20px 20px;

        .warning-area {
            margin-top: 44px;
            margin-bottom: 24px;
            background: #FFFFFF;
            height: 78px;
            display: flex;
            align-items: center;
            /* Sketch doesnt export gradient borders at this point */
            border: 1px solid #ddd;
            border-image: linear-gradient(to bottom, rgba(255, 0, 0, 0), rgba(110, 136, 223, 1)) 5 5;
            text-align: center;
            justify-content: center;

            span {
                color: #245FFF;
            }
        }

        &.low {
            .risk-notice {
                box-shadow: 0 -2px 0 0 rgba(0, 0, 0, 0.10), 0 2px 0 0 #245FFF;

                span {
                    color: #245FFF;

                }
            }

            .warning-area {
                span {
                    color: #245FFF;
                }
            }


        }

        &.major {
            .risk-notice {
                box-shadow: 0 -2px 0 0 rgba(0, 0, 0, 0.10), 0 2px 0 0 #FF0000;

                span {
                    color: #FF0000;

                }
            }

            .warning-area {
                span {
                    color: #FF0000;
                }
            }

        }

        &.general {
            .risk-notice {
                box-shadow: 0 -2px 0 0 rgba(0, 0, 0, 0.10), 0 2px 0 0 #17CD72;

                span {
                    color: #17CD72;

                }
            }

            .warning-area {
                span {
                    color: #17CD72;
                }
            }

        }

        &.larger {
            .risk-notice {
                box-shadow: 0 -2px 0 0 rgba(0, 0, 0, 0.10), 0 2px 0 0 #F9AC00;

                span {
                    color: #F9AC00;

                }
            }

            .warning-area {
                span {
                    color: #F9AC00;
                }
            }

        }

        .risk-notice {
            position: absolute;
            top: -30px;
            left: 50%;
            transform: translateX(-50%);
            background: #FFFFFF;
            height: 55px;
            min-width: 270px;
            line-height: 55px;
            box-shadow: 0 -2px 0 0 rgba(0, 0, 0, 0.10), 0 2px 0 0 #1353CE;

        }

        .info-list {
            display: flex;

            .info-item {
                flex: 1;
                margin-left: 10px;
                height: 120px;
                border: 1px solid #ddd;
                border-radius: 4px;
                border-image: linear-gradient(to bottom, rgba(255, 0, 0, 0), rgba(255, 0, 0, 1)) 5 5;
                display: flex;
                justify-content: center;
                align-items: center;

                &:first-child {
                    margin-left: 0;
                }

                &:nth-child(2) {
                    border-image: linear-gradient(to bottom, rgba(255, 0, 0, 0), rgba(249, 172, 0, 1)) 5 5;

                    span {
                        color: #F9AC00;
                    }
                }

                &:nth-child(3) {
                    border-image: linear-gradient(to bottom, rgba(255, 0, 0, 0), rgba(23, 205, 114, 1)) 5 5;

                    span {
                        color: #17CD72;
                    }
                }

                &:nth-child(4) {
                    border-image: linear-gradient(to bottom, rgba(255, 0, 0, 0), rgba(36, 95, 255, 1)) 5 5;

                    span {
                        color: #245FFF;
                    }
                }

                span {
                    font-family: MicrosoftYaHei;
                    display: inline-block;
                    padding-top: 10px;
                    font-size: 24px;
                    color: #FF0000;
                    text-align: center;
                }
            }
        }
    }

    .statistical-item {
        flex: 1;
        margin: 0 5px;
        background: #fff;
        border: 1px solid #C5C5C5;
        position: relative;
        border-radius: 8px;
        padding: 42px 24px 16px 24px;

        .num-style {
            font-size: 24px;
            color: #1353CE;
            text-align: center;
            margin: 5px 0;
        }

        .line {
            height: 1px;
            background-image: linear-gradient(-270deg, rgba(153, 153, 153, 0.00) 1%, #999999 26%, #999999 79%, rgba(153, 153, 153, 0.00) 100%);
            margin: 15px 0;
            width: 100%;
        }

        p {
            margin: 5px 0;

            &.first-child {
                padding-bottom: 16px;
                min-height: 60px;
            }
        }

        img {
            position: absolute;
            top: -30px;
            left: 50%;
            transform: translateX(-50%);
        }

    }
}

.type-list {
    position: absolute;
    top: 180px;
    left: 40px;
    z-index: 22;

    .type-item {
        color: #333333;
        cursor: pointer;
        padding: 5px 0;

        span {
            display: inline-block;
            margin-right: 8px;
            vertical-align: middle;
            background: #94A3B4;
            width: 12px;
            height: 12px;
            border-radius: 50%;

        }
    }
}

.weathet-wrapper {
    position: absolute;
    top: 50px;
    left: 40px;
    z-index: 22;

    img {
        margin-bottom: 20px;
        margin-right: 20px;
    }
}

.main {
    background: rgba(255, 255, 255, 0.70);
    flex: 1;
    border: 1px solid rgba(49, 122, 251, 0.30);
    margin: 16px 30px 24px 30px;
    padding: 18px;
    display: flex;
    flex-flow: column;
    justify-content: space-between;

    .row-item {
        height: 100%;

        .gutter-box {
            height: 100%;
            width: 100%;
            background: rgba(255, 255, 255, .8);
            position: relative;

            &.map-box {
                background: rgba(255, 255, 255, .8) url("../images/map-bg.png") no-repeat 130px center;

                .all-count {
                    position: absolute;
                    top: 12px;
                    right: 20px;
                    z-index: 22;
                    font-size: 16px;
                    color: #333333;
                    letter-spacing: -0.41px;
                    text-align: center;

                    span {
                        display: inline-block;
                        background: #0A54EA;
                        font-family: DINPro-Bold;
                        font-size: 30px;
                        color: #FFFFFF;
                        letter-spacing: 1.25px;
                        border-radius: 2px;
                        padding: 0 5px;
                        margin-left: 7px;
                    }
                }
            }
        }
    }

    .top-row {
        height: 540px;
    }

    .bottom-row {
        height: 347px;
    }
}